#!/bin/sh

VERSION=$1
TARGET=$2
shift
shift
cat <<EOF
Package: ${TARGET}
Version: ${VERSION}
Section: net
Priority: optional
Architecture: all
Depends: iproute, perl-base, perl-modules, system-log-daemon
Installed-Size: $(stat -c '%s' $* | awk '{a+=$1}END{printf "%d",a/1024+1}')
Maintainer: Andrey Urbanovich <andrey@urbanovich.net>
Description: Simple RIPv2 protocol sender.
 Used for announce local IP address over RIPv2 protocol
EOF
